<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>菜单</title>
	<link rel="STYLESHEET" type="text/css" href="${base}/res/comm/js/dhtmlx/tree/dhtmlxtree.css">    
    <script src="${base}/res/comm/js/dhtmlx/tree/dhtmlxcommon.js"></script>    
    <script src="${base}/res/comm/js/dhtmlx/tree/dhtmlxtree.js"></script>
    <script>
    	var cache=eval(${allMenuLinkAddr});
    </script>
<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

</style></head>

<body style="width:99%;">
<div id="mytree" style="width:100%; height:100%;background-color:#f5f5f5;border :1px solid Silver;"> </div>
<script>
	var desktop=window.parent.document.getElementById('desktop');
    function leftclick(id){
    	for(var i=0;i<cache.length;i+=2){
    		if(cache[i]==id){
    			var ifr=desktop.contentWindow;
    			desktop.src='${base}/admin/desktop.jhtml?q='+encodeURIComponent(cache[i+1]);
    			break;
    		}
    	}
    }
    
    var tree=new dhtmlXTreeObject('mytree',"100%","100%",0);
    tree.setImagePath("${base}/res/comm/js/dhtmlx/tree/imgs/csh_bluebooks/");
    tree.setXMLAutoLoading("${base}/admin/dhtmltree/gettree1.jhtml");
    tree.loadXML("${base}/admin/dhtmltree/gettree.jhtml");    
    tree.setOnClickHandler(leftclick);//设置左键键调用方法
	
	</script> 
</body>
</html>
